home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Experimental BBS Explossion 3
/
Experimental BBS Explossion III.iso
/
msdos
/
s3tool10.zip
/
TSTSASK.BAT
< prev
Wrap
DOS Batch File
|
1993-09-25
|
1KB
|
25 lines
@echo off
cls
sask Name What_is_your_name?
REM S3 ASK will create an environment variable called NAME with the users
REM response to What is your name? SASK will remove the underscores in the
REM question. Do not forget the underscores!!!!!!!
REM SASK will create a batch file called SETSASK.BAT in the current directory
REM which you can then execute whenever you want to. This batch file contains
REM the SET variablename=answer DOS command. As you can see, this .BAT file
REM asks the user for a name, executes the SESASK batch file, deletes the
REM batch file and then issues the SET command by itself to allow you to see
REM the environment table. If you get an OUT OF ENVIRONMENT SPACE error message
REM you will need to increase the size of your environment table in your
REM CONFIG.SYS by adding the line SHELL=C:\DOS\COMMAND.COM /E:512 /P
REM The /E:bbbb /P is the key part. Essentially, you declare your command shell
REM (in this case it is the copy of COMMAND.COM located in C:\DOS) and then
REM use the /E:bytes to set the environment table size in bytes and the /P makes
REM the change permanent. Small note, SHELL can also define the COMSPEC
REM variable by declaring it with the SHELL=C:\DOS\COMMAND.COM C:\DOS /E:512 /P
REM command. The C:\DOS (or where ever) sets COMSPEC----------^^^^^^
call setsask.bat
del setsask.bat > nul:
set